Skip to content

Patient Medical History Timeline#150

Merged
inteee merged 7 commits intoCIVRA-INC:mainfrom
nurudeenmuzainat:patient-timeline
Mar 8, 2026
Merged

Patient Medical History Timeline#150
inteee merged 7 commits intoCIVRA-INC:mainfrom
nurudeenmuzainat:patient-timeline

Conversation

@nurudeenmuzainat
Copy link
Contributor

closes #117

implements the Patient Medical History view for LumenHealth EHR, enabling doctors to see a patient’s complete medical history in a single chronological, scrollable interface. A new backend endpoint GET /api/v1/patients/:id/history performs a MongoDB aggregation that retrieves the patient, their encounters, and joins associated vitals, notes, and diagnoses via $lookup, returning results sorted from newest to oldest with proper indexing on patientId to keep response time under 300ms. On the frontend, the patient dashboard now includes a vertical timeline displaying encounters as expandable accordion cards, revealing nested vitals and notes for each visit. The view supports lazy loading and pagination, initially loading the latest five encounters and fetching additional records as the user scrolls. For parallel development, a complex mock JSON dataset representing three encounters with nested vitals and notes is included to allow frontend work to proceed independently of real backend data.

@nurudeenmuzainat nurudeenmuzainat requested a review from inteee March 8, 2026 22:02
Copy link
Contributor

@inteee inteee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I’ve reviewed the changes and they look good to me. The implementation is clean and aligns with the requirements. Approved.

@inteee inteee merged commit 7d97d8c into CIVRA-INC:main Mar 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Longitudinal Patient Timeline UI & Aggregator

2 participants